package com.algorithm.standard;

import org.apache.shardingsphere.api.sharding.standard.PreciseShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.standard.PreciseShardingValue;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Collection;

public class ReadDatabaseShardingAlgorithm implements PreciseShardingAlgorithm<String> {


    /**
     * 自定义分片规则 按季度分表
     *
     * @param collection
     * @param preciseShardingValue
     * @return
     */
    @Override
    public String doSharding(Collection<String> collection, PreciseShardingValue<String> preciseShardingValue) {
        return "master";
    }
}
